/**
 * @ author: 汪孟苹
 */
define(["jquery","bbcare"],function ($,$bb) {
    var servers = {};
    var URL = $bb.baseUrl("followup");
    /**
     * 获取从阶段调查评估list页面带过来的参数
     */
    var getPageParams = function(){
        return  $bb.getPageParams();
    }
    /**
     * 请求阶段调查评估问卷
     */
    servers.ajaxQuest = function(callback,params){
        $bb.ajax({
            url: URL + "followup/service/patientFollow/queryPtFuAssessInfo",
            data:JSON.stringify({
                data : getPageParams()
            }),
            success: function(data){
                if(data.success){
                    callback(data.data,params);
                }else{
                    $bb.toastShow(data.msg ? data.msg : "阶段调查评估问卷加载失败！");
                }
            }
        });
    }

    return servers;
});